package cn.quevo.core.enums;

/**
 * 文件类型枚举
 *
 * @author July july_sky@foxmail.com
 * @version 1.0
 * @date 2018/07/09 13:55:32
 * @Copyright 东方浩星（北京）传媒科技有限公司版权所有.All Rights Reserved.
 */
public enum FileTypeEnum implements EnumsInterface {
    IMG("IMG", ".jpg,.jpeg,.png,.gif,.webp"),
    DOC("DOC", ".doc,.docx"),
    ZIP("ZIP", ".zip,.rar,.7z,.gz"),
    TEXT("TEXT", ".txt,.pdf,.doc,.docx,.xls,.xlsx"),
    PDF("PDF", "PDF文件"),
    EXCEL("EXCEL",".xls,.xlsx"),
    CUSTOM("CUSTOM","*");
    private String code;
    private String value;

    private FileTypeEnum(String code, String value) {
        this.code = code;
        this.value = value;
    }

    @Override
    public String getCode() {
        return this.code;
    }

    @Override
    public String getValue() {
        return this.value;
    }

}
